let btn = $("#btn");
btn.click(function () {
  let val1 = parseFloat($("#val1").val());
  let val2 = parseFloat($("#val2").val());
  let select = $("#select").val();

  console.log(val1, val2);
  let result = "";
  switch (select) {
    case "+":
      result = val1 + val2;
      break;
    case "-":
      result = val1 - val2;
      break;
    case "*":
      result = val1 * val2;
      break;
    case "/":
      result = val1 / val2;
      break;
    default:
      break;
  }
  $("#result").val(result);
});
